class Music{
  constructor(){
    this.bg = new Audio();
    this.bg.src = '/audio/bgm.mp3';
    this.boom = new Audio();
    this.boom.src = '/audio/boom.mp3';
  }
  bgPaly(){
    //循环播放
    this.bg.loop = true;
    this.bg.play();
  }
  boomPaly() {
    this.boom.play();
  }
}
export default Music;